package com.dq.service.order;

import com.dq.exception.customException.AdminException;
import com.dq.controller.in.orders.CusSaleQuery;
import com.dq.controller.in.orders.UserOrderQuery;
import com.dq.domain.orders.UserOrder;
import com.dq.domain.sys.user.center.UserAccountStaffUser;

import java.util.List;

/**
 * @author liuhui
 * @date 2019/11/25 0025 11:36:42
 */
public interface CusSaleService {
    /**
     * 根据中间表获取 销售单列表
     * @param userOrderQuery
     * @param deleted
     * @return
     * @throws AdminException
     */
    public List<UserAccountStaffUser> userOrderList(UserOrderQuery userOrderQuery, Boolean deleted) throws AdminException;
    public Long userOrderCount(UserOrderQuery userOrderQuery, Boolean deleted) throws AdminException;

    List<UserOrder> findByWhere(CusSaleQuery cusSaleQuery) throws AdminException;

    Long countByWhere(CusSaleQuery cusSaleQuery)throws AdminException;

    /**
     * 根据user_order查订单列表
     * @param userOrderQuery
     * @return
     * @throws AdminException
     */
    public List<UserOrder> findAllUserOrderList(UserOrderQuery userOrderQuery)throws AdminException;
}
